package com.acc.store.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 仓储表
 * @TableName inventory
 */
@TableName(value ="inventory")
@Data
public class Inventory implements Serializable {
    /**
     * 仓储ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 入库时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date stockInTime;

    /**
     * 已上架数量
     */
    private Integer quantityListed;

    /**
     * 库存中数量
     */
    private Integer quantityInStock;

    /**
     * 供应商ID
     */
    private Long supplierId;

    /**
     * 
     */
    private String productName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
